package com.xc.h05.controller.wutao;

import com.xc.h05.entity.Consultcertificate;
import com.xc.h05.service.wutao.ConsultcertificateServic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@RestController
@RequestMapping("/consultcertificateService")
public class ConsultcertificateController {
    @Autowired
    private ConsultcertificateServic consultcertificateService;
    //查询所有
    @GetMapping("/findAll")
    public List<Consultcertificate> findAll(){
        return consultcertificateService.findAll();
    }
    //根据id查询
    @GetMapping("/findById")
    public Consultcertificate findById(Integer id){
        return consultcertificateService.findById(id);
    }

}
